<?php 

class Movements extends CI_Controller {

 function __construct() {
   parent::__construct();
   $this->load->model('articles_model');
   $this->load->model('inventory_model');
   $this->load->model('movements_model');
   $this->load->database();
   $this->load->helper('url');
 }

 //Loads the users view
 function index() {
   if($this->session->userdata('logged_in')) {
     $session_data = $this->session->userdata('logged_in');
     $data['ds_usuario'] = $session_data['ds_usuario'];
     $this->load->view('movements_view', $data);
   } else {
     redirect('login', 'refresh');
   }
 }

}